package utils

import (
	"log"

	"github.com/go-kratos/kratos/v2/transport/http"
)

func PrintRoutes(srv *http.Server) error {
	return srv.WalkRoute(func(ri http.RouteInfo) error {
		log.Printf("[%s]: \t%s", ri.Method, ri.Path)
		return nil
	})
}
